package com.njym.java.security.admin.biz;

import com.njym.java.security.common.util.AppPush;
import org.springframework.stereotype.Service;

import com.njym.java.security.admin.entity.FamilyNews;
import com.njym.java.security.admin.mapper.FamilyNewsMapper;
import com.njym.java.security.common.biz.BaseBiz;
/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-06 09:12:35
 */
@Service
public class FamilyNewsBiz extends BaseBiz<FamilyNewsMapper,FamilyNews> {
	@Override
	public void insertSelective(FamilyNews entity) {
		//发送推送通知
		AppPush.pushAll(entity.getNewsTitle(),entity.getNewsStitle(),"","../information/news");
		super.insertSelective(entity);
	}
}